﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.Globalization;
using OgilvyOne.UKNow.IDAL;

namespace OgilvyOne.UKNow.DALFactory
{
   public class EventCalendarFactory
    {
       public static readonly IDALEventCalendar ChineseEventCalendar = new EventCalendarDAL(LanguageType.cn);
       public static readonly IDALEventCalendar EnglishEventCalendar = new EventCalendarDAL(LanguageType.en);

       public static IDALEventCalendar Create(int langID)
       {
           return langID ==(int) LanguageType.cn ? ChineseEventCalendar : EnglishEventCalendar;
       }
    }
}
